package com.zuo.mall.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zuo.mall.common.api.CommonPage;
import com.zuo.mall.dto.OmsOrderDeliveryParam;
import com.zuo.mall.dto.OmsOrderDetail;
import com.zuo.mall.dto.OmsOrderQueryParam;
import com.zuo.mall.dto.OmsReceiverInfoParam;
import com.zuo.mall.entity.OmsOrder;

import java.util.List;

public interface OmsOrderService extends IService<OmsOrder> {
    /**
     * 通过参数条件分页查询所有订单
     */
    CommonPage<OmsOrder> getPage(OmsOrderQueryParam orderService, Integer pageNum, Integer pageSize);

    /**
     * 通过订单id查询订单详细信息
     * @param id
     * @return
     */
    OmsOrderDetail getOrderDetailById(Long id);

    int updateReceiverInfo(OmsReceiverInfoParam receiverInfoParam);

    /**
     * 修改订单备注
     */
    int updateNoteById(Long id, String note, Integer status);

    /**
     * 批量关闭订单
     */
    int closeOrderBatch(List<Long> ids, String note);

    int deleteOrderBatch(List<Long> ids);

    int deliveryBatch(List<OmsOrderDeliveryParam> deliveryParams);

}
